﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BankSystem.Classes
{
    public interface Account
    {
        string getBank();
        string getID();
        bool CheckPassword(string password);
        void SaveMoney(double amount);
        void WithdrawMoney(double amount);
        double getBalance();
    }

    struct ID
    {
        public string bank;
        public bool type;//0=account 1=ATM
        public int number;
        public string toString()
        {
            return bank+(type?1:0)+number;
        }
    }
}
